package com.snopy.pojo;

/**
 * @author snopy
 * @version 1.0.0
 * @classname Banana
 * @description
 * @email 77912204@qq.com
 * @date 2022/02/19 18:37
 */

public class Banana {
    private String color;
    public volatile String name;
    private Double weight;
    private String desc;

    public Banana() {
    }

    public Banana(String color) {
        this.color = color;
    }

    public Banana(String color, String name) {
        this.color = color;
        this.name = name;
    }

    public Banana(String color, String name, double weight, String desc) {
        this.color = color;
        this.name = name;
        this.weight = weight;
        this.desc = desc;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getWeight() {
        return weight;
    }

    public void setWeight(Double weight) {
        this.weight = weight;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    @Override
    public String toString() {
        return "Banana{" +
                "color='" + color + '\'' +
                ", name='" + name + '\'' +
                ", weight=" + weight +
                ", desc='" + desc + '\'' +
                '}';
    }
}
